import 'package:fish_redux/fish_redux.dart';

import 'rtmp_action.dart';
import 'rtmp_state.dart';

Reducer<RtmpState> buildReducer() {
  return asReducer(
    <Object, Reducer<RtmpState>>{
      RtmpAction.action: _onAction,
    },
  );
}

RtmpState _onAction(RtmpState state, Action action) {
  final RtmpState newState = state.clone();
  return newState;
}
